<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xn="http://www.renren.com/2009/xnml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="{{ staticUrl }}/img/favicon.ico" rel="itgeeker favorite icon" type="image/x-icon" />
    <link href="{{ staticUrl }}/css/layout.css?ver={{ cssVersion }}" rel="stylesheet" type="text/css" media="all" />
    <title>ITGeeker——专业的IT技术交流站点！</title>
</head>
<body>
    {% include "../inc/admin_navbar.inc" %}
    <table>
        <tbody>
            <tr>
                <th>计数器类型</th>
                <th>计数器当前值</th>
            </tr>
            {% for counterInfo in counterInfoList %}
                <tr>
                    <td>{{ counterInfo.0 }}</td>
                    <td>{{ counterInfo.1 }}</td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
    <br />
    <br />
    设置计数器属性和初值（请将初值设置成50，则第一个数据记录id为51，前1-50可保留系统用！）：<br/>
    <form method="post" action="/admin/counter">
        <p>
            <label for="counter_init">计数器初值</label>
            <input id="counter_init" name="counter_init" value="" type="text" />
        </p>
        <p>
            <label for="counter_type">计数器类型</label>
            <select class="input-select" id="counter_type" name="counter_type">
                {% for counterInfo in counterInfoList %}
                    <option value="{{ counterInfo.0 }}">{{ counterInfo.0 }}</option>
                {% endfor %}
            </select>
        </p>
        <p>
            <input type="submit" value="保存设置" />
        </p>
    </form>
</body>
</html>
